﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSL.Utility;
using System.Data;

namespace TSL.AjaxResult
{
    public class NoticeResult : Results
    {
        /// <summary>
        /// 成功简化模式
        /// </summary>
        public NoticeResult()
        {
            this.Parameter = "";
            this.Error = "";
            this.Result = 0;
        }

        /// <summary>
        /// 错误简化模式
        /// </summary>
        public NoticeResult(int result, string error)
        {
            this.Parameter = "";
            this.Error = error;
            this.Result = result;
        }

        private DataTable table;
        public DataTable Table
        {
            get { return table; }
            set { table = value; }
        }
    }
}
